package org.mozhu.simple.rpc.server;

import lombok.Data;

import java.util.Properties;

@Data
public class RpcServerConfig {
    private int numNetworkThreads = 10;
    private int queuedMaxRequests = 1000;

    private int socketSendBufferBytes;
    private int socketReceiveBufferBytes;

    private String host;
    private int port;

    public static RpcServerConfig fromProps(Properties serverProps) {
        return new RpcServerConfig();
    }
}
